package hibernate.dao;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.List;

public interface BasicDAO {
	public <T> T getEntity(Class<T> entityClass, Serializable id);
	public boolean addEntity(Object entity) throws Exception;
	public boolean deleteEntity(Class<?> entity, Serializable id);
	public Object updateEntity(Object entity);
	public <T> List<T> getResultList(Class<T> entityClass, String whereStr, LinkedHashMap<String, String> orderBy);
}
